package org.zachary.agent.application.event_listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.event.TransactionalEventListener;
import org.zachary.agent.domain.aggregate_model.user.event.UserRegisteredEvent;

@Slf4j
@Component
public class UserRegisteredEventListener {
    @TransactionalEventListener
    public void onUserRegistered(UserRegisteredEvent event) {
        log.info("用户{}注册成功",event.getUserId());
    }
}
